FROM 172.16.1.128/weibo/base-image-jdk:1.0
MAINTAINER smc2@qq.com

RUN egrep "^PS1=" || echo "PS1='container:[\u@\h \w \A #\#]\$ '" >> /etc/profile
RUN unlink /etc/localtime
RUN ln -sv /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

ENV TERM xterm-256color
ENV LANG en_US.UTF-8
ENV JAVA_HOME /usr/java/jdk1.8.0_151
ENV PATH $JAVA_HOME/bin:$PATH

RUN mkdir -vp /usr/local/run
RUN mkdir -vp /data/logs
COPY container_init.sh /container_init.sh
RUN chmod -v 755 /container_init.sh

COPY target/*SNAPSHOT.jar /usr/local/run/app.jar
EXPOSE 18988

ENTRYPOINT /bin/bash /container_init.sh

